﻿#ifndef QSIMULATION_H
#define QSIMULATION_H

#include <QMainWindow>
#include <QTcpSocket>
#include <QHostAddress>

namespace Ui {
class QSimulation;
}

class QSimulation : public QMainWindow
{
    Q_OBJECT

public:
    explicit QSimulation(QWidget *parent = nullptr);
    ~QSimulation();

private slots:
    //客户端槽函数
    void ReadData();
    void ReadError(QAbstractSocket::SocketError);

    void on_btn_link_clicked();

    void on_btn_break_clicked();

    void on_btn_online_clear_clicked();

    void on_btn_work_clear_clicked();

    void on_brn_ele_clear_clicked();

    void on_btn_send_work_clicked();

    void on_btn_clear_accept_clicked();

private:
    Ui::QSimulation *ui;
    QTcpSocket *tcpClient;
};

#endif // QSIMULATION_H
